#include"TcpServe.hpp"

void Usage(string proc)
{
    cout << "\n\rUsage: " << proc << " port[1024+]\n" << std::endl;
}
using  namespace std;
int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        Usage(argv[0]);
        exit(0);
    }
    uint16_t port = stoi(argv[1]);
    TcpServe* tp=new TcpServe(port);
    tp->Init();
    tp->Start();
    return 0;
}